home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / util / cli / ECmd21p_bin.lha / ExtraCmds / doc / Compare.man < prev    next >
Encoding:
Text File  |  1993-12-28  |  2.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Compare(V37)                                         Compare(V37)
  5.  
  6.  
  7. FFOORRMMAATT
  8.        CCOOMMPPAARREE [[FFIILLEE11] _f_i_l_e] [[FFIILLEE22] _f_i_l_e] [[SSKKIIPP11] _n] [[SSKKIIPP22]
  9.        _n] [QQUUIIEETT]
  10.  
  11. TTEEMMPPLLAATTEE
  12.        FFIILLEE11,,FFIILLEE22,,SSKKIIPP11//NN,,SSKKIIPP22//NN,,QQUUIIEETT//SS
  13.  
  14. PPUURRPPOOSSEE
  15.        To perform a byte-by-byte comparison of two files.
  16.  
  17. SSPPEECCIIFFIICCAATTIIOONN
  18.        CCOOMMPPAARREE compares the two files given by FFIILLEE11  and  ffiillee22.
  19.        If  only  one file is given, the default input is used for
  20.        the other. It is an error if  both  FFIILLEE11  and  FFIILLEE22  are
  21.        omitted.   CCOOMMPPAARREE  makes  no comment if the files are the
  22.        same; if they differ, it reports the byte (in both decimal
  23.        and  hex) and line number at which the difference occured,
  24.        or, that one file is an initial subsequence of the  other.
  25.        SSKKIIPP11  and  SSKKIIPP22  are  initial  decimal byte offsets into
  26.        FFIILLEE11 and FFIILLEE22 respectively. If the QQUUIIEETT switch is used,
  27.        CCOOMMPPAARREE  will  print  nothing for differing files; it will
  28.        set the condition flag only.  QQUUIIEETT does not suppress  the
  29.        printing of error messages.
  30.  
  31.        The condition flag, RC, is set to 0 for identical files, 5
  32.        (WARN) for different files, and 10 (ERROR) for bogus argu­
  33.        ments like inaccessible files.
  34.  
  35. EEXXAAMMPPLLEE
  36.        If  you want to express an offset in octal or hexadecimal,
  37.        you can use EEVVAALL (see EEVVAALL(AmigaDOS)):
  38.  
  39.            1> COMPARE Foo Bar `EVAL 0x1FE`
  40.  
  41. SSEEEE AALLSSOO
  42.        CCOOMMMMOONN(V37)
  43.  
  44. UUNNIIXX EEQQUUIIVVAALLEENNTT
  45.        ccmmpp(1)
  46.  
  47. AAUUTTHHOORR
  48.        Torsten Poulin (torsten@diku.dk)
  49.  
  50. UUNNRREESSTTRRIICCTTIIOONNSS
  51.        CCOOMMPPAARREE is free; anyone may redistribute copies of CCOOMMPPAARREE
  52.        to anyone under the terms stated in the GNU General Public
  53.        Licence, a copy of which accompanies each copy of CCOOMMPPAARREE.
  54.  
  55.        Torsten  Poulin  encourages you to improve and extend CCOOMM­­
  56.        PPAARREE, and urges that you contribute your extensions to the
  57.        world.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Compare version 37.5       21 June 1993                         1
  65.  
  66.  
  67.